<template>
  <div class="app">
    <!-- 头部 -->
    <Header />
    <div class="main">
      <!-- 左侧菜单 -->
      <Nav />
      <!-- 右侧内容 -->
      <div class="content">
        <router-view></router-view>
      </div>
    </div>
  </div>
</template>

<script>
import Header from '@/components/Header.vue'
// import Header from '@/components/Header copy'
// import Nav from '@/components/Nav.vue'
import Nav from '@/components/Nav'
export default {
  components: {
    Header,
    Nav
  }
}
</script>

<style lang="less" scoped>
.app {
  display: flex;
  flex-direction: column;
  height: 100%;
  .main {
    flex: 1;
    display: flex;

    .content {
      //height: calc(100vh - 170px);
      padding: 0 20px;
      flex: 1;
      overflow-y: scroll;
    }
  }
}
</style>
